package com.wentao.thisService.mapper;

import com.wentao.thisService.model.CompanyAddressInfoEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CompanyAddressInfoDao {

    public List<CompanyAddressInfoEntity> Search(CompanyAddressInfoEntity entity);

    public List<CompanyAddressInfoEntity> SearchPage(@Param("entityItem") CompanyAddressInfoEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public List<CompanyAddressInfoEntity> SearchAut(CompanyAddressInfoEntity entity);

    public List<CompanyAddressInfoEntity> SearchPageAut(@Param("entityItem") CompanyAddressInfoEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public IntResultEntity Count(CompanyAddressInfoEntity entity);

    public IntResultEntity CountAut(CompanyAddressInfoEntity entity);

    List<CompanyAddressInfoEntity> SearchByApproveStepAndApproveStatus(@Param("entityItem")CompanyAddressInfoEntity entity, @Param("pageItem") PageEntity pageItem);

}